package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 请假单对象 leavebill
 * 
 * @author J_tao
 * @date 2020-04-01
 */
public class Leavebill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 请假单id */
    private Long id;

    /** 请假单标题 */
    @Excel(name = "请假单标题")
    private String title;

    /** 请假单内容 */
    @Excel(name = "请假单内容")
    private String content;

    /** 请假天数 */
    @Excel(name = "请假天数")
    private Long days;

    /** 离开时间 */
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leavetime;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDays(Long days) 
    {
        this.days = days;
    }

    public Long getDays() 
    {
        return days;
    }
    public void setLeavetime(Date leavetime) 
    {
        this.leavetime = leavetime;
    }

    public Date getLeavetime() 
    {
        return leavetime;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("days", getDays())
            .append("leavetime", getLeavetime())
            .append("state", getState())
            .toString();
    }
}
